package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.ResponseTopData
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_AccountInformationBindPhoneContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/10/29
 * @description 我的——账户信息——绑定手机号页面的Model
 */
class Module_UserInfo_AccountInformationBindPhoneModel : BaseModel(), Module_UserInfo_AccountInformationBindPhoneContract.Model {
    override fun getBindCode(
        token: String,
        code: String,
        phone: String
    ): Observable<HttpResult<ResponseTopData>> {
        return Base_RetrofitHelper.service.getBindCode(token, code, phone)
    }
}